Optimal. Leaf size=221 \[ -\frac {2 C (b \sec (c+d x))^n \sin (c+d x)}{d (1-2 n) \sqrt {\sec (c+d x)}}-\frac {2 (A+C (3-2 n)-2 A n) \, _2F_1\left (\frac {1}{2},\frac {1}{4} (5-2 n);\frac {1}{4} (9-2 n);\cos ^2(c+d x)\right ) (b \sec (c+d x))^n \sin (c+d x)}{d (1-2 n) (5-2 n) \sec ^{\frac {5}{2}}(c+d x) \sqrt {\sin ^2(c+d x)}}-\frac {2 B \, _2F_1\left (\frac {1}{2},\frac {1}{4} (3-2 n);\frac {1}{4} (7-2 n);\cos ^2(c+d x)\right ) (b \sec (c+d x))^n \sin (c+d x)}{d (3-2 n) \sec ^{\frac {3}{2}}(c+d x) \sqrt {\sin ^2(c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 221, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.122, Rules used = {20, 4132, 3857,
2722, 4131} \begin {gather*} -\frac {2 (-2 A n+A+C (3-2 n)) \sin (c+d x) (b \sec (c+d x))^n \, _2F_1\left (\frac {1}{2},\frac {1}{4} (5-2 n);\frac {1}{4} (9-2 n);\cos ^2(c+d x)\right )}{d (1-2 n) (5-2 n) \sqrt {\sin ^2(c+d x)} \sec ^{\frac {5}{2}}(c+d x)}-\frac {2 B \sin (c+d x) (b \sec (c+d x))^n \, _2F_1\left (\frac {1}{2},\frac {1}{4} (3-2 n);\frac {1}{4} (7-2 n);\cos ^2(c+d x)\right )}{d (3-2 n) \sqrt {\sin ^2(c+d x)} \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 C \sin (c+d x) (b \sec (c+d x))^n}{d (1-2 n) \sqrt {\sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 20
Rule 2722
Rule 3857
Rule 4131
Rule 4132
Rubi steps
\begin {align*} \int \frac {(b \sec (c+d x))^n \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx &=\left (\sec ^{-n}(c+d x) (b \sec (c+d x))^n\right ) \int \sec ^{-\frac {3}{2}+n}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx\\ &=\left (\sec ^{-n}(c+d x) (b \sec (c+d x))^n\right ) \int \sec ^{-\frac {3}{2}+n}(c+d x) \left (A+C \sec ^2(c+d x)\right ) \, dx+\left (B \sec ^{-n}(c+d x) (b \sec (c+d x))^n\right ) \int \sec ^{-\frac {1}{2}+n}(c+d x) \, dx\\ &=-\frac {2 C (b \sec (c+d x))^n \sin (c+d x)}{d (1-2 n) \sqrt {\sec (c+d x)}}+\left (B \cos ^{\frac {1}{2}+n}(c+d x) \sqrt {\sec (c+d x)} (b \sec (c+d x))^n\right ) \int \cos ^{\frac {1}{2}-n}(c+d x) \, dx+\frac {\left (\left (C \left (-\frac {3}{2}+n\right )+A \left (-\frac {1}{2}+n\right )\right ) \sec ^{-n}(c+d x) (b \sec (c+d x))^n\right ) \int \sec ^{-\frac {3}{2}+n}(c+d x) \, dx}{-\frac {1}{2}+n}\\ &=-\frac {2 C (b \sec (c+d x))^n \sin (c+d x)}{d (1-2 n) \sqrt {\sec (c+d x)}}-\frac {2 B \, _2F_1\left (\frac {1}{2},\frac {1}{4} (3-2 n);\frac {1}{4} (7-2 n);\cos ^2(c+d x)\right ) (b \sec (c+d x))^n \sin (c+d x)}{d (3-2 n) \sec ^{\frac {3}{2}}(c+d x) \sqrt {\sin ^2(c+d x)}}+\frac {\left (\left (C \left (-\frac {3}{2}+n\right )+A \left (-\frac {1}{2}+n\right )\right ) \cos ^{\frac {1}{2}+n}(c+d x) \sqrt {\sec (c+d x)} (b \sec (c+d x))^n\right ) \int \cos ^{\frac {3}{2}-n}(c+d x) \, dx}{-\frac {1}{2}+n}\\ &=-\frac {2 C (b \sec (c+d x))^n \sin (c+d x)}{d (1-2 n) \sqrt {\sec (c+d x)}}-\frac {2 (A (1-2 n)+C (3-2 n)) \, _2F_1\left (\frac {1}{2},\frac {1}{4} (5-2 n);\frac {1}{4} (9-2 n);\cos ^2(c+d x)\right ) (b \sec (c+d x))^n \sin (c+d x)}{d (1-2 n) (5-2 n) \sec ^{\frac {5}{2}}(c+d x) \sqrt {\sin ^2(c+d x)}}-\frac {2 B \, _2F_1\left (\frac {1}{2},\frac {1}{4} (3-2 n);\frac {1}{4} (7-2 n);\cos ^2(c+d x)\right ) (b \sec (c+d x))^n \sin (c+d x)}{d (3-2 n) \sec ^{\frac {3}{2}}(c+d x) \sqrt {\sin ^2(c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 180.00, size = 0, normalized size = 0.00 \begin {gather*} \text {\$Aborted} \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.54, size = 0, normalized size = 0.00 \[\int \frac {\left (b \sec \left (d x +c \right )\right )^{n} \left (A +B \sec \left (d x +c \right )+C \left (\sec ^{2}\left (d x +c \right )\right )\right )}{\sec \left (d x +c \right )^{\frac {3}{2}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (b \sec {\left (c + d x \right )}\right )^{n} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right )}{\sec ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^n\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________